<template>
  <div class="header">
  	<div class="header-left iconfont icon-back"></div>
  	<div class="heider-input iconfont icon-search"></div>
  	<router-link to="/city">
  	<div class="header-right iconfont icon-bottom-arrow">{{ city }}</div>
  	</router-link>
  </div>
</template>

<script>
import { mapState } from "vuex"

export default {
  name: 'homeHeader',
  computed: {
  	...mapState(['city'])
  }
}
</script>

<style lang="stylus" scoped>
	@import '~styles/varibles.styl'
	.header
		display: flex;
		height: .86rem;
		line-height: .86rem;
		color: #fff;
		background-color: $bgColor;
		.header-left
			width: .64rem
			float: left;
			text-align: center;
			font-size: .4rem;
		.heider-input
			flex: 1;
			margin-top: .12rem;
			padding-left:.2rem;
			height: .64rem;
			line-height: .64rem;
			margin-left: .2rem;
			background-color: #fff;
			border-radius: .1rem;
			color: #ccc;
		.header-right
			min-width:.6rem;
			float:right;
			text-align: center;
			padding-left:.2rem;
			color: white;
</style>
